package orcamento;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table(name = "item_orc_serv")
@SequenceGenerator( name = "ITS_ID", sequenceName = "ITS_SEQ", allocationSize = 1 )
public class Item_orc_serv implements Serializable
{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Id
	@Column(name = "id")
	@GeneratedValue( strategy = GenerationType.IDENTITY, generator = "ITS_ID" ) 
	private int id;
	@Column(name = "cod_item")
	private int cod_item;
	@Column(name = "desc_item")
	private String desc_item;
	@Column(name = "vlr_item")
	private float vlr_item;
	@ManyToOne  
	@JoinColumn(name = "itemorc") 
	private EntidadeOrcamento itemorc;
	
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getCod_item() {
		return cod_item;
	}
	public void setCod_item(int cod_item) {
		this.cod_item = cod_item;
	}
	public String getDesc_item() {
		return desc_item;
	}
	public void setDesc_item(String desc_item) {
		this.desc_item = desc_item;
	}
	public float getVlr_item() {
		return vlr_item;
	}
	public void setVlr_item(float vlr_item) {
		this.vlr_item = vlr_item;
	}
	public EntidadeOrcamento getItemorc() {
		return itemorc;
	}
	public void setItemorc(EntidadeOrcamento itemorc) {
		this.itemorc = itemorc;
	}
	
	
}
